﻿<Window x:Class="OrderEntryProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="574" d:DesignWidth="818" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="795" />
            <ColumnDefinition Width="0" />
            <ColumnDefinition Width="*" />            
        </Grid.ColumnDefinitions>
        <Menu>
            <MenuItem Header="Save" Name="mnuSave" Click="mnuSave_Click" />
            <MenuItem Header="New Order" Name="mnuNewOrder" Click="mnuNewOrder_Click" />
            <MenuItem Header="Exit" Name="mnuExit" Click="mnuExit_Click" />
        </Menu>
        <ComboBox Name="cmbCustomers" Margin="4,30,5,478" SelectionChanged="cmbCustomers_SelectionChanged" />
        <ListBox Name="lstOrders" Margin="5,63,5,206">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border CornerRadius="5" BorderThickness="2" BorderBrush="Blue" Margin="3">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Order #" TextAlignment="Right" Width="40" />
                            <TextBlock Name="txtOrderId" Text="{Binding Path=OrderID}" Margin="5,0,10,0" Width="30" />
                            <TextBlock Text="Order Date:" TextAlignment="Right" Width="80" />
                            <TextBlock Name="txtOrderDate" Text="{Binding Path=OrderDate, StringFormat={}{0:MM/dd/yyyy}}" Margin="5,0,10,0" Width="75" />
                            <TextBlock Text="Required Date:" TextAlignment="Right" Width="80" />
                            <TextBlock Name="txtRequiredDate" Text="{Binding Path=ReqiredDate, StringFormat={}{0:MM/dd/yyyy}}" Margin="5,0,10,0" Width="75" />
                        </StackPanel>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <!--<DataGrid AutoGenerateColumns="True" Height="537" HorizontalAlignment="Left" Name="dataGrid1" VerticalAlignment="Top" Width="624" DataContext="{Binding}" Margin="0,-2,0,0" Grid.Column="1" />-->
		<!--<Button Content="Aggregates" Height="23" HorizontalAlignment="Left" Margin="66,74,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />-->
        <!--<ScrollBar Height="317" HorizontalAlignment="Left" Margin="630,-2,0,0" Name="scrollBar1" VerticalAlignment="Top" Width="18" Scroll="scrollBar1_Scroll" Grid.Column="1" />-->
    </Grid>
</Window>
